package com.derbysoft.dswitch.adapter.ihg.common.domain;

import com.derbysoft.dswitch.adapter.ihg.common.domain.support.PersistenceSupport;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Entity
public class HotelMapping extends PersistenceSupport {

    @Column(name = "dswitch_code", nullable = false, unique = true)
    private String derbyCode;

    @Column(name = "cooperator_code", nullable = false, unique = true)
    private String cooperatorCode;

    private String hotelName;

    @Enumerated(EnumType.STRING)
    private HotelStatus status;

    public HotelMapping() {
    }

    public HotelMapping(String derbyCode, String cooperatorCode) {
        this.derbyCode = derbyCode;
        this.cooperatorCode = cooperatorCode;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public HotelStatus getStatus() {
        return status;
    }

    public void setStatus(HotelStatus status) {
        this.status = status;
    }

    public String getDerbyCode() {
        return derbyCode;
    }

    public void setDerbyCode(String derbyCode) {
        this.derbyCode = derbyCode;
    }

    public String getCooperatorCode() {
        return cooperatorCode;
    }

    public void setCooperatorCode(String cooperatorCode) {
        this.cooperatorCode = cooperatorCode;
    }
}
